package com.A21.GuoSai.demo.service_entity.entity.waste;

import com.A21.GuoSai.demo.service_entity.entity.workflow.StaticVarValuePojo;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.junit.jupiter.api.Test;

@Data
@ToString
@NoArgsConstructor
@AllArgsConstructor
public class Shop {
    private String name;
    private String type;
    private Integer price;
}


class TestSth{
    @Test
    public void test01() throws Exception {
        Shop shop=new Shop("a1","第一类",20);
        System.out.println(shop.toString());
        String json="Shop(name=a1, type=第一类, price=20)";


        StaticVarValuePojo staticVarPojo=new StaticVarValuePojo();
        staticVarPojo.setS_name("shop");
        staticVarPojo.setTypeClass(Shop.class);
        staticVarPojo.setValue(json);

        System.out.println(staticVarPojo.toString());
    }
}